package dao;

import entities.CompanyJdo;
import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.HibernateTemplate;

import java.sql.Date;
import java.util.List;

public class DBCompanyDAOImpl  implements CompanyDAO{

    private HibernateTemplate hibernateTemplate;

    public void setSessionFactory(SessionFactory sessionFactory){
        this.hibernateTemplate = new HibernateTemplate(sessionFactory);
    }

    public void addCompany(CompanyJdo company) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void removeCompany(CompanyJdo company) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void updateCompany(Long companyId, CompanyJdo company) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public CompanyJdo getCompanyById(Long companyId) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public List<CompanyJdo> getCompaniesByUserId(Long userId) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public List<CompanyJdo> getCompaniesByGroupId(Long groupId) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public List<CompanyJdo> getCompaniesByDateRegistered(Date dateRegistered) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public List<CompanyJdo> getCompaniesRegisteredInPeriod(Date startDate, Date endDate) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }
}
